package com.mentaleye.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mentaleye.dal.dao.StudentDisciplineDataRecordDao;
import com.mentaleye.dal.model.StudentDisciplineDataRecord;
import com.mentaleye.service.StudentDisciplineDataRecordService;

@Service
public class StudentDisciplineDataRecordServiceImpl implements StudentDisciplineDataRecordService {

	@Autowired private StudentDisciplineDataRecordDao recordDao;
	
	@Override
	public List<StudentDisciplineDataRecord> getListBySelective(Map<String,Object> map) {
		return this.recordDao.getListBySelective(map);
	}

	@Override
	public StudentDisciplineDataRecord getRecordBySelective(Map<String,Object> map) {
		List<StudentDisciplineDataRecord> recordList = this.recordDao.getListBySelective(map);
		StudentDisciplineDataRecord record=null;
		if(!recordList.isEmpty()){
			record=recordList.get(0);
		}
		return record;
	}

}
